﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Robotics.Race
{
	public class SensedEnvironment
	{
        public enum TerrainType { Grass, Road };

		private int? distance;
		public int? Distance { get { return distance; } set { distance = value; } } // 0..255

		private int? leftLight; // Sensed brightness in %
		public int? LeftLight
		{
			get { return leftLight; }
			set { leftLight = value; }
		}

		private int? rightLight;// Sensed brightness in %
		public int? RightLight
		{
			get { return rightLight; }
			set { rightLight = value; }
		}

		private bool? touch;
		public bool? Touch
		{
			get { return touch; }
			set { touch = value; }
		}

		private double speed;
		public double Speed
		{
			get { return speed; }
			set { speed = value; }
		}

		private TerrainType leftTerrain;
		public TerrainType LeftTerrain
		{
			get { return leftTerrain; }
			set { leftTerrain = value; }
		}

		private TerrainType rightTerrain;
		public TerrainType RightTerrain
		{
			get { return rightTerrain; }
			set { rightTerrain = value; }
		}
	}
}
